<!-- header -->
<div class="header">
    <div class="head-container">
        <div class="cl">
            <div class="logo fl">
                <a href=""><img src="/static/home/images/logo.png" width="100"></a>
            </div>
            <div class="navbox fl">
                <ul class="nav cl">
                    {volist name="navs" id="nav"}
                    <li>
                        <a href="{$nav->description}"><div><span>{$nav->title}</span> <span>home</span></div></a>
                    </li>
                    {/volist}
                    <!--<li class="active">-->
                        <!--<a href="{:url('articles/index')}">-->
                            <!--<div><span>新 闻</span> <span>news</span></div>-->
                        <!--</a>-->
                    <!--</li>-->
                    <!--<li>-->
                    <!--<a href="{:url('pages/contact')}">-->
                    <!--<div>-->
                    <!--<span>联 系</span> <span>Contact</span>-->
                    <!--</div>-->
                    <!--</a>-->
                    <!--</li>-->
                </ul>
            </div>
            <!-- 导航 -->
            <!--<div class="headcontact fr">
                <small><img src="/static/home/images/headtelimg.gif"></small> <span><a href="tel:4000070186">400-007-0186</a></span>
            </div>-->
            <!-- 电话 -->
            <!--<div class="seach">
                <div class="seachbut">
                    <a href="javascript:seach();"></a>
                </div>
            </div>-->
            <!-- 搜索 -->
        </div>
    </div>
</div>
<!-- header-end -->

<script>
    var requestURI = "<?php echo $_SERVER['REQUEST_URI'] ?>";
    $(".nav li").each(function () {
        if(requestURI == $(this).find("a").attr('href') || requestURI == $(this).find("a").attr('href')+'.html'){
            $(this).addClass('active');
        }
    });
</script>